/**
 * 
 */
package optimization.naturalOptimization.population.individual.EA;

import optimization.naturalOptimization.population.Population;

/**
 * This class provides an individual for an evolutionary algorithm with a double
 * array object component and a double array strategy component.
 * 
 * @author Kevin Wagner
 * @version 1.0
 */
public class DoubleArrayEAIndividual extends
		EAIndividual<double[], double[]> {

	/**
	 * 
	 * @param parentPopulation
	 */
	public DoubleArrayEAIndividual(Population parentPopulation) {
		super(parentPopulation);
	}

	/*
	 * (non-Javadoc)
	 * @see optimization.naturalOptimization.population.individual.EA.EAIndividual#clone()
	 */
	@SuppressWarnings("rawtypes")
	@Override
	public EAIndividual clone() {
		DoubleArrayEAIndividual newInd=new DoubleArrayEAIndividual(getParentPopulation());
		newInd.setPosition(getPosition().clone());
		newInd.setStrategyComponent(getStrategyComponent().clone());
		newInd.setPositionFitness(getPositionFitness());
		return newInd;
	}

}
